package com.magnificent.panda.model.entity;

import java.io.Serializable;

/**
 * User: Babanin
 * Date: 13.03.2010
 * Time: 11:36:43
 */
public class FlowActorType implements Serializable {
    public static final FlowActorType SLAVE = new FlowActorType(0);
    public static final FlowActorType MASTER = new FlowActorType(1);

    private int type;

    public FlowActorType() {
        this.type = 0;
    }

    public FlowActorType(int type) {
        this.type = type;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        FlowActorType that = (FlowActorType) o;

        if (type != that.type) return false;

        return true;
    }

    @Override
    public int hashCode() {
        return type;
    }
}

  /* converted to utf8 */